package com.bauer.java.activiti.task;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

/**
 * 结合spring 或者 声明class   需要继承JavaDelegate
 */
@Component("serviceTask1")
public class ServiceTask1 implements JavaDelegate {

    @Override
    public void execute(DelegateExecution execution) throws Exception {
        System.out.println("ServiceTask"+execution.getVariable("var1"));
    }
}
